/**
 * @file wa_panel.h
 *
 */

#ifndef _WA_PANEL_H
#define _WA_PANEL_H

#ifdef __cplusplus
extern "C" {
#endif

	/*********************
	*      INCLUDES
	*********************/
#include "wa_conf.h"
#if USE_WA_PANEL != 0
#include <string.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "wa_area.h"
#include "wa_obj.h"
#include "wa_mask_draw.h"
#include "wa_wm.h"
#include "wa_font.h"
#include "wa_image.h"	
/*********************
*      DEFINES
*********************/

/**********************
*      TYPEDEFS
**********************/

typedef struct
{
	wa_obj_callback cb;
	wa_gui_color color;
}wa_panel_ext;

/**********************
* GLOBAL PROTOTYPES
**********************/

void wa_panel_module_init(void);
wa_obj* wa_panel_create(wa_obj* par);
void wa_panel_set_callback(wa_obj* panel, wa_obj_callback cb);
void wa_panel_set_color(wa_obj* panel, wa_gui_color color);
wa_gui_color wa_panel_get_color(wa_obj* panel);

/**********************
*      MACROS
**********************/

#endif

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
